﻿<%@ Page Title="Timeout Orders" Language="C#" Culture="auto" UICulture="auto" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TimeoutOrders.aspx.cs" Inherits="IFD2.TimeoutOrders" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server" role="form" class="form-inline" defaultbutton="lbtnQuery">
    <div class="container-fluid body-content" style="width:100%;">
        
        <div class="row">
            <div class="col-sm-2 well well-sm">
                <h5><asp:Literal ID="litTitle" runat="server" meta:resourcekey="tipPageTitle"></asp:Literal></h5>
                <br class="hidden-xs"/>
                <asp:LinkButton ID="lbtnQuery" runat="server" CssClass="form-control input-sm btn-primary text-center" Width="100%" ToolTip="" meta:resourcekey="tipQuery" OnClick="lbtnQuery_Click"> <span class="glyphicon glyphicon-search" style="font-size:large;"></span></asp:LinkButton>
                <p></p><%--没有此行(或&nbsp;)，上面的按钮在手机模式(xs)下，只有上半部可以点击！--%>
            </div>

            <div class="col-sm-10 well well-sm">
                <div class="panel">
                    <div class="panel-heading btn-primary">
                        <h6 class="panel-title" id="section-2"><asp:Literal ID="Literal1" runat="server" meta:resourcekey="tipPageTitle"></asp:Literal></h6>
                    </div>
                    <div class="panel-body"> 
                        <div class="table-responsive">
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" style="min-width:700px;width:100%;" class="table-hover"
                                DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:BoundField DataField="pay_before" HeaderText="pay_before" 
                                        SortExpression="pay_before"  meta:resourcekey="pay_before" />
                                    <asp:TemplateField HeaderText="flt_no" meta:resourcekey="flt_no">
                                        <ItemTemplate>
                                            <%# Eval("airline") +""+ Eval("flt_no")%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="flt_date" HeaderText="flt_date" HtmlEncode="false" DataFormatString="{0:yyyy-M-d}"
                                        SortExpression="flt_date"  meta:resourcekey="flt_date" />
                                    <asp:TemplateField HeaderText="bk_id" SortExpression="bk_id" meta:resourcekey="bk_id">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl='<%# "Order.aspx?pnr="+Eval("bk_id") %>'><%#Eval("bk_id") %></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:CheckBoxField DataField="is_group" HeaderText="is_group" meta:resourcekey="is_group"
                                        SortExpression="is_group" />
                                    <asp:BoundField DataField="seats" HeaderText="seats" SortExpression="seats"  meta:resourcekey="seats" />
                                    <asp:BoundField DataField="ori_city" HeaderText="ori_city" 
                                        SortExpression="ori_city"  meta:resourcekey="ori_city" />
                                    <asp:BoundField DataField="des_city" HeaderText="des_city" 
                                        SortExpression="des_city"  meta:resourcekey="des_city" />
                                </Columns>
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EFF3FB" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                <SortedDescendingHeaderStyle BackColor="#4870BE" />
                            </asp:GridView>
                        </div>
                    </div>
                </div>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>" 
                    SelectCommand="bll_airline_get_time_up_orders" SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:SessionParameter Name="airline" SessionField="AIRLINE" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </div>
        </div>
        
    </div></form>

    <script src="JS/ScrollableGridPlugin.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var win_height = parseInt($(window).height());
            var tab_new_height= win_height-50-100;//菜单占50， 为便于操作留空100
            if ($('#<%=GridView1.ClientID %>').height()>tab_new_height)
                $('#<%=GridView1.ClientID %>').Scrollable({ ScrollHeight: tab_new_height });
        });
    </script>

</asp:Content>
